const assert = require("node:assert").strict

assert.d

// Generate an AssertionError to compare the error message later:
const { message } = new assert.AssertionError({
    actual: 1,
    expected: 2,
    operator: 'strictEqual',
    message:"yang jun"
  });

try {
    assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, "3"]], 4, 5],"yang jun")
} catch (error) {
    console.log("不相等");
    assert(error.actual instanceof assert.AssertionError);

    assert.strictEqual(error.message, message);
    // assert.strictEqual(error.name, 'AssertionError');
    // assert.strictEqual(error.actual, 1);
    // assert.strictEqual(error.expected, 2);
    // assert.strictEqual(error.code, 'ERR_ASSERTION');
    // assert.strictEqual(error.operator, 'strictEqual');
    // assert.strictEqual(error.generatedMessage, true);
}
